package com.svse.designPattern.behaviour.templatemethod.service;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/8/6 20:05
 */
abstract  public class AbstractClass {
    public final void templateMethod(){
        SpecificMethod();
        abstractMethod1();
        abstractMethod2();
    }
    public void SpecificMethod() {
        System.out.println("抽象类中的具体方法被调用...");
    }
    public abstract void abstractMethod1(); //抽象方法1
    public abstract void abstractMethod2(); //抽象方法2
}
